﻿//更新主贴(+1)次数
function UpdatePlus(fileid, count) {
    $.ajax({
        type: 'post',
        url: '/file/ajax/UpdatePlus',
        data: 'FileID=' + fileid,
        success: function (result) {
            if (result == 1) {
                $("#FilePlus_" + fileid).empty();
                $("#FilePlus_" + fileid).text("(+1)(" + (count + 1) + ")");
                $("#FilePlus_" + fileid).attr("href", "#");
                FollowTips("+1", "FilePlus_" + fileid);
            }
            else if (result == 0) {
                FollowTips("操作失败", "FilePlus_" + fileid);
            }
            else {
                FollowTips("您所在的组没有进行此操作的权限", "FilePlus_" + fileid);
            }
        }
    });
}